package com.jet.member.remote.cashier;

import com.jet.core.result.ResultJson;
import com.jet.member.remote.cashier.vo.MemberCashierLastOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dcl
 * @since 2025/2/21 15:07
 */
@FeignClient(contextId = "cashier-remote", value = "mammon-merchant", fallback = CashierRemoteFallback.class)
public interface CashierRemoteFeign {

    @GetMapping("/inner/cashier-order/last-cashier-order")
    ResultJson<MemberCashierLastOrderVo> getMemberCashierLastOrder(@RequestParam long merchantNo,
                                                                   @RequestParam String memberId);
}
